/* ======================================================
   <!-- Button -->
/* ====================================================== */
@import '@poemkit/components/_utils/styles/_variable-and-mixin.scss';

/*
 * 4. Icons
 * 5. Group
 * 7. Margin
*/

$button-class-margin-lr: 1rem;
$button-class-margin-b: 1rem;



/*
 ---------------------------
 4. Icons
 ---------------------------
 */

.rtl .poemkit-btn__icon {
    padding-left: auto;
    padding-right: 3.6rem;


	&.poemkit-btn__icon--right {
		padding-left: 3.6rem;
		padding-right: 2.5rem;

		> span {
			left: 0;
			right: auto;
		}
	}

	> span {
		left: auto;
        right: 0;
	}


	&.poemkit-btn__icon--left {

		> span {
			right: 0;
		}

	}

	&.is-transparent.poemkit-btn__icon--left {
		> span {
			border-right: none;
            border-left: 1px solid rgba(0,0,0,.1);
		}
	}
	&.is-transparent.poemkit-btn__icon--right {
		> span {
			border-left: none;
            border-right: 1px solid rgba(0,0,0,.1);
		}
	}


	&.is-pill.poemkit-btn__icon--left span {
		border-radius: 35px 35px 0 0;
	}

	&.is-pill.poemkit-btn__icon--right span {
		border-radius: 0 0 50px 50px;
	}

	&.is-rounded.poemkit-btn__icon--left span {
		border-radius: 4px 4px 0 0;
	}

	&.is-rounded.poemkit-btn__icon--right span {
		border-radius: 0 0 4px 4px;
	}



}


/*
 ---------------------------
 5. Group
 ---------------------------
 */
.rtl .poemkit-btn__group {

	> .poemkit-btn {
		float: right;
		

		&.is-rounded {

			&:first-child {
				border-radius: 4px 4px 0 0;
			}

			&:last-child {
				border-radius: 0 0 4px 4px;
			}

		}

		&.poemkit-btn__border--thin:not(:first-child) {
			margin-left: auto;
            margin-right: -1px;
		}

		&.poemkit-btn__border--medium:not(:first-child) {
			margin-left: auto;
            margin-right: -2px;
		}

		&.poemkit-btn__border--thick:not(:first-child) {
			margin-left: auto;
            margin-right: -3px;
		}



	}

	

}



/*
 ---------------------------
 7. Margin
 ---------------------------
 */

.rtl .poemkit-btn__margin--l {
	margin-left: auto;
    margin-right: #{$button-class-margin-lr};
}

.rtl .poemkit-btn__margin--r {
	margin-right: auto;
    margin-left: #{$button-class-margin-lr};
}
